package com.uniledger.test.model.db;

import android.arch.persistence.room.TypeConverter;

public class Converters {

    @TypeConverter
    public static int bool2int(boolean is) {
        return is ? 1 : 0;
    }


    @TypeConverter
    public static boolean int2bool(int a) {
        return a > 0 ? true : false;
    }


}
